<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="" autocomplete="off">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color:red;">*</span>{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2"><span style="color:red;">*</span>优惠券金额:</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-money" data-rule="required" class="form-control" step="0.01" name="row[money]" type="number" value="0.00" onmousewheel="return false;" onDOMMouseScroll="stopScrollFun">
    </div>
</div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color:red;">*</span>满减基数:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="use_amount" data-rule="required" class="form-control" step="0.01" name="row[use_amount]" type="number" value="0.00" onmousewheel="return false;" onDOMMouseScroll="stopScrollFun">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">使用规则:</label>
        <div class="col-xs-12 col-sm-8" style="overflow: scroll;">
            <textarea id="c-content" class="form-control" rows="5" name="row[detail]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color:red;">*</span>张数:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-count" data-rule="required" class="form-control" name="row[count]" type="text" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color:red;">*</span>领用开始时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color:red;">*</span>领用结束时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <!--<div class="form-group">-->
        <!--<label class="control-label col-xs-12 col-sm-2"><span style="color:red;">*</span>优惠券到期时间:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<input id="c-coupon_end_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[coupon_end_time]" type="text" value="{:date('Y-m-d H:i:s')}">-->
        <!--</div>-->
    <!--</div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['1'=>'已启用', '0'=>'未启用'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
<script>
    function stopScrollFun(evt) {
        evt = evt || window.event;
        if(evt.preventDefault) {
            // Firefox
            evt.preventDefault();
            evt.stopPropagation();
        } else {
            // IE
            evt.cancelBubble=true;
            evt.returnValue = false;
        }
        return false;
    }
</script>